package Class.Basis.GirlFriends;

public class Girls {
    private String name;
    private int age;
    private boolean sex;
    private String hobby;

    public Girls() {
    }

    public Girls(String name, int age, boolean sex, String hobby) {
        this.name = name;
        this.age = age;
        this.sex = sex;
        this.hobby = hobby;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public boolean isSex() {
        return sex;
    }

    public void setSex(boolean sex) {
        this.sex = sex;
    }

    public String getHobby() {
        return hobby;
    }

    public void setHobby(String hobby) {
        this.hobby = hobby;
    }

    public String toString() {
        return "Girls{name = " + name + ", age = " + age + ", sex = " + (sex ? "女" : "男") + ", hobby = " + hobby + "}";
    }
}
